package cn.zhangjie.product.service.impl;

import cn.zhangjie.basic.service.imp.BasicServiceImpl;
import cn.zhangjie.product.domain.ProductDetail;
import cn.zhangjie.product.mapper.ProductDetailMapper;
import cn.zhangjie.product.service.IProductDetailService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

/**
 * (ProductDetail)表服务实现类
 *
 * @author makejava
 * @since 2022-08-12 09:41:44
 */
@Service
//查询的方法比较多，使用查询的事务配置
//只读，事务传播机制=SUPPORTS，有我就用，没有事务就不用
@Transactional(readOnly = true,propagation = Propagation.SUPPORTS)
public class ProductDetailServiceImpl extends BasicServiceImpl<ProductDetail> implements IProductDetailService  {

    @Autowired
    private ProductDetailMapper productDetailMapper;

    /**
     * 无极限树
     *
     * @author makejava
     * @since 2022-08-06 18:34:41
     */
     @Override
    public List<ProductDetail> deptTree() {
        return null;
    }
}
